$(document).ready(function(){
	var middle = $('#middle');
	var frame_body = $('#frame_body');
	var win_obj = $(window);
	frame_body.css("height",win_obj.height()-50-5);
	middle.css("padding-top",((win_obj.height()-50)/2-30));
	$('#right').css("width",$('#frame_body').width()-$('#left').width()-middle.width());
});
function middleButton(){
	var mb = $('#middlebutton');
	if(mb.attr("name")=="close"){
		$('#left').hide();
		$('#right').css("width",$('#frame_body').width()-$('#middle').width());
		mb.attr("name","open");
		mb.css("background-image","url(images/middle_bg2.png)");
	}else if(mb.attr("name")=="open"){
		$('#left').show();
		$('#right').css("width",$('#frame_body').width()-$('#left').width()-$('#middle').width());
		mb.attr("name","close");
		mb.css("background-image","url(images/middle_bg1.png)");
	}
	
}
function sbar(st, col) {
	st.style.backgroundColor = '#EAF4FE';
}
function cbar(st) {
	st.style.backgroundColor = '';
}